package org.lds.scheduled.job.common.util;


import org.lds.scheduled.job.common.enums.ErrCodeEnum;
import org.lds.scheduled.job.common.exception.BusinessException;

public class AssertUtil {
    public static void assertTrue(boolean condition, ErrCodeEnum errCodeEnum) {
        if (!condition) {
            throw new BusinessException(errCodeEnum);
        }
    }

}
